#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<string.h>
int main()
{
    char arr[20] = { 0 };
    while (gets(arr) != EOF)
    {
        char* p = arr;
        int sz = strlen(arr);
        int left = 0;
        int right = sz - 1;
        while (left < right)
        {
            char q = *(p + left);
            *(p + left) = *(p + right);
            *(p + right) = q;
            left++;
            right--;
        }
        printf("%s\n", arr);
    }
}